import Axios from "axios";
import ApiUtils from "~/utils/ApiUtils";

const GET_USER_INFO_URL = '/web/getUserAuthorization';

export async function getCurrentUserInfo(useCache = true) {
    try {
        return ApiUtils.unboxResponse(await Axios.post(GET_USER_INFO_URL, null, { cache: useCache }));
    }catch (e) {
        return null;
    }
}
